package day04.work02;

public class Test {
        public static void main(String[] args) {
        Animal cat = new Cat("tom", "灰白");
        Animal dog = new Dog("旺财", 5);
        Animal bird = new Bird("樱桃", 21.76);
        cat.makeSound();//猫发出喵喵叫声
        cat.move();//猫在四腿爬行
        dog.makeSound();//狗发出汪汪叫声
        dog.move();//狗在四腿奔跑
        bird.makeSound();//鸟发出啾啾叫声
        bird.move();//鸟在飞翔
    }
}
